import glumpy
from gl_shapes import *

fig = glumpy.figure( (800,800) )
smooth()

def on_draw():
    fig.clear()
    x_count = 20
    y_count = 20
    step = 30

    x = 100

    for i in range(x_count):
        r = i/20.0

        y = 100
        for j in range(y_count):
            g = j/20.0
            color = r,g,0.0,1.0
            ellipse(c=(x,y), w=i*10, h=j*10, a=0.0, color=color, step=20, stroke=1.0, type="fill")
            y = y + step
        x = x + step

fig.window.push_handlers(on_draw)
glumpy.show()